package cn.lut;

import cn.lut.da04.SomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @user:dell
 * @date:2020年10月30 09:21
 */
public class Mytest4 {
    @Test
    public void test1(){
        String config="applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(config);
        SomeService myService = (SomeService) applicationContext.getBean("myService4");
       myService.doSecond();

    }

}
